<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title></title>

</head>
<body>

<p align="center">
	<h2>权限添加页</h2>
	<a href="index.html">权限主页</a>
</p>
<form action="add" method="post">
	<input type="hidden" name="id" value="<?php echo ($data["id"]); ?>">
	<p>权限名称: <input type="text" name="rule_name" value="<?php echo ($data["rule_name"]); ?>"></p>
	<p>模块名称: <input type="text" name="module_name" value="<?php echo ($data["module_name"]); ?>"></p> 
	<p>控制器名称: <input type="text" name="controller_name" value="<?php echo ($data["controller_name"]); ?>"></p>
	<p>方法名称: <input type="text" name="action_name" value="<?php echo ($data["action_name"]); ?>"></p>
	<p>
		菜单是否显示:
		<input type="radio" name="is_shop" value="1" <?php if(($data["is_shop"]) == "1"): ?>checked="checked"<?php endif; ?>>是
		<input type="radio" name="is_shop" value="1" <?php if(($data["is_shop"]) == "0"): ?>checked="checked"<?php endif; ?>>否
	</p>
	<p>
		上级权限选择：<select name="parent_id">
			<option value="0">顶级权限</option>
			<?php if(is_array($parent)): $i = 0; $__LIST__ = $parent;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>" <?php if(($vo["id"]) == $data["parent_id"]): ?>selected="selected"<?php endif; ?>> 
					|<?php echo (str_repeat("--",$vo["lev"])); echo ($vo["rule_name"]); ?>
				</option><?php endforeach; endif; else: echo "" ;endif; ?>
		</select>
	</p>
	<p>
		<input type="submit" value="提交">
		<input type="reset" value="重置">
	</p>
</form>

</body>
</html>